<template>
  <div class="recommend-info">
    <div class="info-header">热门推荐</div>
    <GridView>
      <GoodsListItem v-for="( item, index ) in recommendList" :key=" index " :goods=" item ">
      </GoodsListItem>
    </GridView>
  </div>
</template>

<script>
import GridView from '@/components/common/gridView/GridView.vue'
import GoodsListItem from '@/views/home/childComps/GoodsListItem.vue'

export default {
  name: "DetailRecommendInfo",
  components: {
    GridView,
    GoodsListItem
  },
  props: {
    recommendList: {
      type: Array
    }
  }
}
</script>

<style scoped>
.recommend-info {
  padding: 5px;
}

.info-header {
  line-height: 40px;
  padding-left: 8px;
  font-size: 15px;
  color: #333;
}
</style>
